package com.wans.guli.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wans.guli.common.utils.PageUtils;
import com.wans.guli.order.entity.OrderEntity;
import com.wans.guli.order.vo.OrderConfirmVo;
import com.wans.guli.order.vo.SubmitOrderResponseVo;

import java.util.Map;

/**
 * 订单
 *
 * @author wans
 * @email wansconst@163.com
 * @date 2025-08-01 16:29:20
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取订单确认页数据
     * @return 订单确认页数据
     */
    OrderConfirmVo getOrderConfirmData();

    /**
     * 创建订单
     * @param orderId 订单ID
     * @return 创建结果
     */
    SubmitOrderResponseVo submitOrder(String orderId,Long addressId);
}

